import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { BrowserModule } from "@angular/platform-browser";
import { RouterModule, Routes } from "@angular/router";
import { AuthGuardService, AuthGuardModule } from "auth-guard";
import { CommentsComponent } from "./comments.component";

const commentsRoutes: Routes = [
  {
    path: "comments",
    component: CommentsComponent,
    // canActivateChild: [
    //   AuthGuardService
    // ],
    children: [
      // {
      //   path: "",
      //   component: CommentsComponent
      // },
      // {
      //   path: "**",
      //   component: CommentsComponent
      // }
    ]
  }
];

@NgModule({
  declarations: [
    CommentsComponent
  ],
  imports: [
    CommonModule,
    BrowserModule,
    RouterModule.forChild(commentsRoutes)
  ],
  exports: [],
  providers: [],
})
export class CommentsModule {}